package com.ldatum.crm.service;

import java.util.List;

import com.ldatum.crm.domain.TEmployee;

public interface TEmployeeService {
	void add(TEmployee TEmployee) throws Exception;
	void delete(TEmployee TEmployee,int id) throws Exception;
	void update(TEmployee TEmployee,int id) throws Exception;
	TEmployee findById(Class<TEmployee> clazz,int id) throws Exception;
	TEmployee findByLoginname(Class<TEmployee> clazz, String loginname) throws Exception;
	List<TEmployee> list(Class<TEmployee> clazz) throws Exception;
	void save(TEmployee employee) throws Exception;
	void deletes(String ids) throws Exception;
	void resetPasswd(String ids, String npwd) throws Exception;
	String changepwd(Integer id, String oldpwd, String newpwd, String rpnewpwd) throws Exception;
}
